Added some rules to GtkCellAreaBox for rendering the last cell.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 1 Dec 2010 13:42:54 +0000 (22:42 +0900)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Wed, 1 Dec 2010 13:56:06 +0000 (22:56 +0900)
commit30561228ed3dfc88866852ceecf81063a640e0d5
treec53502d219282e6f4a031074078b9a34d26fdcdc
parenta852deeb03a55f97ec3791408eb9506d9b9e783b
Added some rules to GtkCellAreaBox for rendering the last cell.

 - When we reach a cell that is out of the render area, break out
   of the loop (for columns user resized too small)
 - CLAMP the size of the last renderer to fit into the area
   (so that renderers get a chance to ellipsize when rendered
   with a space less than allocation, same reason as above).
 - Hand out remaining space in the render area to the last cell,
   this is for shallow rows in the expand column which may recieve
   more than the allocated width.
gtk/gtkcellareabox.c
tests/testtreeview.c